package testDataGenerator.model.generationMethod;

import testDataGenerator.model.DataType;
import testDataGenerator.model.DataTypeFactory;
import testDataGenerator.model.GenerationMethod;

public class RangedRandomMethod implements GenerationMethod {
	private String low;
	private String high;
	private DataType dt;
	
	public RangedRandomMethod(String low, String high, String type, DataTypeFactory factory){
		this.low = low;
		this.high = high;
		this.dt = factory.createDataType(type);
	}
	
	
	public String generate(){
		return this.dt.rangedRandom(this.low, this.high);
	}

}
